package com.engineering.elink.domain;

import java.util.Date;

public class Enroll {
    private Integer enrollId;

    private Integer courseId;

    private String userId;

    private Date enrollTime;
    
    public Enroll(){
    	
    }
    
    public Enroll(Integer courseId,String userId){
    	this.courseId=courseId;
    	this.userId=userId;
    	this.enrollTime=new Date();
    }

    public Integer getEnrollId() {
        return enrollId;
    }

    public void setEnrollId(Integer enrollId) {
        this.enrollId = enrollId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Date getEnrollTime() {
        return enrollTime;
    }

    public void setEnrollTime(Date enrollTime) {
        this.enrollTime = enrollTime;
    }

}